/**
 * 
 */
package com.gr.staffpm.plugins.modules;

import com.atlassian.plugin.AutowireCapablePlugin;
import com.atlassian.plugin.descriptors.AbstractModuleDescriptor;


/**
 * @author Graham Rhodes 10 Mar 2011 20:05:02
 */
@SuppressWarnings("deprecation")
public class OnStartModuleDescriptor extends AbstractModuleDescriptor<Runnable> {

    /* (non-Javadoc)
     * @see com.atlassian.plugin.descriptors.AbstractModuleDescriptor#getModule()
     */
    @Override
    public Runnable getModule() {
        return ((AutowireCapablePlugin) getPlugin()).autowire(getModuleClass());
    }

}
